{loop $menus $menu}
{if check_purview($menu['arrgroupid'])}<li><a href="{$menu[url]}" target="{$menu[target]}" style="{$menu[style]}">{$menu[name]}</a></li>{/if}
{/loop}